package com.hzy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Package: com.hzy.controller
 * @ClassName: HelloSpringMVC
 * @Author: 862982795
 * @CreateTime: 2021/07/14 15:10
 * @Description:
 */
@Controller
@RequestMapping(value = "helloSpringMVC")
public class HelloSpringMVC {

    @RequestMapping(value = "hello")
    public String hello(@RequestParam(required = false) String name) throws Exception {
        System.out.println("Hello，Spring MVC");
        return "hello";
    }
}
